package org.hose.controller;

import org.hose.vo.Response;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @RequestMapping("/login")
    public Response<String> login() {
        int a = 300;
        int b = 25;
        int c = a/b;
        System.out.println(c);
        System.out.println(b);
        Response<String> response = new Response<>();
        response.setCode(200);
        response.setMessage("Login Test Jacoco.");
        response.setResult("Login Test Jacoco. result");
        return response;
    }

    @RequestMapping("/loginOut")
    public Response<String> loginOut() {
        int a = 500;
        int b = 25;
        int c = a/b;
        System.out.println(c);
        Response<String> response = new Response<>();
        response.setCode(200);
        response.setMessage("Login Out Test Jacoco.");
        response.setResult("Login Out Test Jacoco. result");
        return response;
    }
}
